package com.woniuxy.service;

import com.woniuxy.controller.form.FoodVarietyInsertForm;
import com.woniuxy.controller.form.FoodVarietySearchForm;
import com.woniuxy.controller.form.FoodVarietyUpdateForm;
import com.woniuxy.controller.form.FoodVarietyUpdateStatusForm;
import com.woniuxy.entity.FoodVariety;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.service.dto.FoodVarietyDto;
import com.woniuxy.service.dto.WoniuPageDto;

/**
 * <p>
 * 菜品 服务类
 * </p>
 *
 * @author zz
 * @since 2023年06月13日
 */
public interface FoodVarietyService extends IService<FoodVariety> {

    FoodVariety insert(FoodVarietyInsertForm form, Integer accountId) throws Exception;

    void updateStatus(FoodVarietyUpdateStatusForm form, Integer accountId) throws Exception;

    WoniuPageDto<FoodVarietyDto> searchByCondition(FoodVarietySearchForm form, Integer accountId);

    void updateMessage(FoodVarietyUpdateForm form, Integer accountId);
}
